import java.lang.reflect.Array;
import java.util.Arrays;

public class Text {
    public static void main(String[] args) {
        int[][] arrA={{1,2,3},{4,5,6}};
        int[][] arrB={{5,2},{5,6},{2,5}};
        int[][] arrC=new int[arrA.length][arrB[0].length];

        for(int i=0;i<arrA.length;i++){
            for(int j=0;j<arrB[0].length;j++){
                int sum=0;
                for(int k=0;k<arrA[0].length;k++){
                    sum=sum+arrA[i][k]*arrB[k][j];
                    arrC[i][j]=sum;
                }
            }
        }
        for (int i=0;i<arrC.length;i++){
            System.out.println(Arrays.toString(arrC[i]));
        }
    }
}
